package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the cusmshift database table.
 * 
 */
@Entity
@NamedQuery(name="Cusmshift.findAll", query="SELECT c FROM Cusmshift c")
public class Cusmshift implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="cusm_id")
	private int cusmId;

	@Temporal(TemporalType.DATE)
	@Column(name="cusm_date")
	private Date cusmDate;

	@Column(name="cusm_desc")
	private String cusmDesc;

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="cus_id")
	private Customer customer;

	//bi-directional many-to-one association to Dictionary
	@ManyToOne
	@JoinColumn(name="cusm_state")
	private Dictionary dictionary;

	//bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name="nuser_id")
	private User user1;

	//bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name="huser_id")
	private User user2;

	//bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name="user_id")
	private User user3;

	public Cusmshift() {
	}

	public int getCusmId() {
		return this.cusmId;
	}

	public void setCusmId(int cusmId) {
		this.cusmId = cusmId;
	}

	public Date getCusmDate() {
		return this.cusmDate;
	}

	public void setCusmDate(Date cusmDate) {
		this.cusmDate = cusmDate;
	}

	public String getCusmDesc() {
		return this.cusmDesc;
	}

	public void setCusmDesc(String cusmDesc) {
		this.cusmDesc = cusmDesc;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Dictionary getDictionary() {
		return this.dictionary;
	}

	public void setDictionary(Dictionary dictionary) {
		this.dictionary = dictionary;
	}

	public User getUser1() {
		return this.user1;
	}

	public void setUser1(User user1) {
		this.user1 = user1;
	}

	public User getUser2() {
		return this.user2;
	}

	public void setUser2(User user2) {
		this.user2 = user2;
	}

	public User getUser3() {
		return this.user3;
	}

	public void setUser3(User user3) {
		this.user3 = user3;
	}

}